
import 'package:shared_preferences/shared_preferences.dart';
import 'package:ymApp/common/http_service.dart';

class Global {
  // 本地缓存对象
  static  SharedPreferences  prefs;

  // 初始化全局信息
  static init() async {
    print('Global 类初始化');
    prefs = await SharedPreferences.getInstance();

    // 初始化httpService 拦截器配置
    HttpRequest.init();
    return;
  }
}
